package com.assistant.admin.pojo;


import lombok.Data;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Id;
import javax.persistence.Table;

@Data
@Table(name = "sp_manager")
public class SpManager {
    @Id
    @KeySql(useGeneratedKeys = true)
    private Integer id;

    private String username;
    private String password;
    private String register_time;
    private Integer role_id;
    private String mobile_phone;
    private String mg_email;
    private Integer mg_state;
    private Integer root_authority;
    @Override
    public String toString() {
        return "SpManager{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", register_time='" + register_time + '\'' +
                ", role_id=" + role_id +
                ", mobile_phone='" + mobile_phone + '\'' +
                ", mg_email='" + mg_email + '\'' +
                ", mg_state=" + mg_state +
                ", rootAuthority=" + root_authority +
                '}';
    }
}
